﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Marta.buchalska.wesele.Model
{
    public class ExceptionHandler : Exception
    {
        private Exception exception;

        public ExceptionHandler(Exception exception)
        {
            // TODO: Complete member initialization
            this.exception = exception;
        }

        public void ShowMessage(System.Web.UI.WebControls.Label label)
        {
            label.Text = exception.Message;
        }
    }
}
